package com.example.demo.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.domain.Repost;
import com.example.demo.mapper.RepostMapper;

@Service
public class RepostServiceImpl implements RepostService{
	private final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	@Autowired
	RepostMapper repostMapper;
	@Override
	public List<Repost> getRepostsByAid(Long aid) {
		logger.info("----RepostServiceImpl.getRepostsByaid(): ");
		return repostMapper.selectRepostsByAid(aid);
	}

}
